//
//  DARisingMenu.h
//  DAKnowledge
//
//  Created by DreamArts on 16/4/28.
//  Copyright © 2016年 lidongyang. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Config.h"
#import <QuartzCore/QuartzCore.h>
typedef enum {
    CodeTypeNormal,
    CodeTypeQR
}CodeType;
//回传扫描结果的委托
@protocol RisingMenuDelegate <NSObject>

- (void)didScanFinished:(NSDictionary *)result type:(CodeType)codeType;

@end

@class ScanningView;

@interface DARisingMenu : UIView

typedef void (^MenuTouchBlocks)(NSInteger touchIndex);

@property(nonatomic,weak)id<RisingMenuDelegate>delegate;

- (instancetype)initWithButtonTitles:(NSArray *)buttonTitles images:(NSArray *)buttonImages;

- (void)showOnTouchBlock:(MenuTouchBlocks)block;

@property (nonatomic, strong) ScanningView *overView;
@end

@interface ScanningView : UIView
@property(nonatomic)BOOL stopMoveLine;
@property (weak, nonatomic) NSTimer *timer;
+ (NSInteger)width;
+ (NSInteger)height;
@end